Skip to content

Conversation

@joseph-isaacs
Copy link
Contributor

@joseph-isaacs joseph-isaacs commented Oct 21, 2025

The fuzzer found these.

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
@joseph-isaacs joseph-isaacs marked this pull request as ready for review October 21, 2025 15:22
@joseph-isaacs joseph-isaacs requested a review from AdamGS October 21, 2025 15:22
@joseph-isaacs joseph-isaacs added the changelog/fix A bug fix label Oct 21, 2025
@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

❌ Patch coverage is 97.21116% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.06%. Comparing base (b7cbe18) to head (519b530).
⚠️ Report is 14 commits behind head on develop.

Files with missing lines Patch % Lines
vortex-array/src/arrays/chunked/compute/sum.rs 95.04% 5 Missing ⚠️
vortex-scalar/src/decimal/value.rs 98.01% 3 Missing ⚠️
vortex-array/src/arrays/constant/compute/sum.rs 96.77% 2 Missing ⚠️
vortex-array/src/arrays/decimal/compute/sum.rs 0.00% 2 Missing ⚠️
vortex-scalar/src/decimal/scalar.rs 93.75% 2 Missing ⚠️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
Signed-off-by: Joe Isaacs <joe.isaacs@live.co.uk>
DType::Decimal(
DecimalDType::new(precision, decimal_dtype.scale()),
*nullability,
Nullable,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was incorrect

@joseph-isaacs joseph-isaacs merged commit dd22838 into develop Oct 22, 2025
67 of 68 checks passed
@joseph-isaacs joseph-isaacs deleted the ji/sum-decimal-more-support branch October 22, 2025 09:26
@robert3005
Copy link
Contributor

I think we should unify the behaviour - for decimal array sum we widen the type and use wrapping arithmetic but here we widen the type and use checked arithmetic. I think I convinced myself that with the widended type you will only hit the issue if you ever have an array bigger than 2^32 elements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants